import request from '@/utils/request'

// 查询压力传感器列表
export function listPressuresensor(query) {
    return request({
        url: '/water/pressuresensor/list',
        method: 'get',
        params: query
    })
}

// 查询压力传感器详细
export function getPressuresensor(sensorId) {
    return request({
        url: '/water/pressuresensor/' + sensorId,
        method: 'get'
    })
}

// 新增压力传感器
export function addPressuresensor(data) {
    return request({
        url: '/water/pressuresensor',
        method: 'post',
        data: data
    })
}

// 修改压力传感器
export function updatePressuresensor(data) {
    return request({
        url: '/water/pressuresensor',
        method: 'put',
        data: data
    })
}

// 删除压力传感器
export function delPressuresensor(sensorId) {
    return request({
        url: '/water/pressuresensor/' + sensorId,
        method: 'delete'
    })
}
